# -*- coding: utf-8 -*-
from datetime import timedelta
from airflow.operators.bash import BashOperator
from jms_oclock_12.dm.dm_network_forecast_waybill_cnt_dt import jms_dm__dm_network_forecast_waybill_cnt_dt

jms_oracle__dm_platform_forecast_waybill_cnt_dt = BashOperator(
    task_id='jms_oracle__dm_platform_forecast_waybill_cnt_dt',
    execution_timeout=timedelta(hours=2),
    email=['guoruiling@jtexpress.com','yl_bigdata@yl-scm.com'],
    # name='jms_oracle__dm_platform_forecast_waybill_cnt_dt_{{ execution_date | date_add(1) | cst_ds }}',
    bash_command="jms_oclock_12/oracle/dm_platform_forecast_waybill_cnt_dt/execute.sh",
    pool='spmi_apack',
    retries=1,
    pool_slots=2,
)

jms_oracle__dm_platform_forecast_waybill_cnt_dt << [jms_dm__dm_network_forecast_waybill_cnt_dt]